using UnityEngine;
using LitJson;
using System;
public class Logic : MonoBehaviour
{
    protected View view;
    public virtual void Awake()
    {
        view = this.GetComponent<View>();
        gameObject.AddComponent<PomeloBehaviour>();
    }
    public virtual void OnSocketOpen()
    {
    }
    public virtual void OnSocketClose()
    {
    }
    public virtual void Request(string route, Action<JsonData> action)
    {
        PomeloManager.GetInstance().Request(route, action);
    }
    public virtual void Request(string route, JsonData msg, Action<JsonData> action)
    {
        PomeloManager.GetInstance().Request(route, msg, action);
    }
}